package cn.edu.jxust.core.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author QiuKangming
 * @version 1.0
 * @description MyBatisPlus 配置类: 解决MyBatisPlus 分页插件不生效问题
 * @since 2020/06/23 15:31
 */
@Configuration
public class MyBatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {

        PaginationInterceptor interceptor = new PaginationInterceptor();
        interceptor.setDialectType("mysql");
        return new PaginationInterceptor();

    }
}